using Baula.TextGen.Framework.Sections;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Baula.TextGen.Framework.Tests
{
    internal static class AssertionHelpers
    {
        public static void AssertContentSection(ISection section, string expectedContent)
        {
            Assert.IsInstanceOfType(section, typeof(ContentSection));
            var contentSection = (ContentSection) section;
            Assert.AreEqual(expectedContent, contentSection.Content);
        }

        public static void AssertPlaceholderSection(ISection section, string name)
        {
            Assert.IsInstanceOfType(section, typeof(PlaceholderSection));
            var placeholderSection = (PlaceholderSection) section;
            Assert.AreEqual(name, placeholderSection.Name);
        }
    }
}